<a class="menu-toggler" id="menu-toggler" href="#">
  <span class="menu-text"></span>
</a>

<div class="sidebar" id="sidebar">
  <div class="sidebar-shortcuts" id="sidebar-shortcuts">
  </div><!-- #sidebar-shortcuts -->

  <ul class="nav nav-list">
    <li<?php echo menu_active('', ' class="active"') . menu_active('index', ' class="active"', 1); ?>>
      <a href="<?php echo site_url(); ?>">
        <i class="icon-dashboard"></i>
        <span class="menu-text"> Dashboard </span>
      </a>
    </li>
    <li<?php echo menu_active('ads', ' class="active"'); ?>>
      <a href="<?php echo site_url('ads/ads/view'); ?>">
        <i class="icon-barcode"></i>
        <span class="menu-text"> Advertise </span>
      </a>
    </li>
    <li<?php echo menu_active('banner', ' class="active"'); ?>>
      <a href="<?php echo site_url('banner/banner/view'); ?>">
        <i class="icon-book"></i>
        <span class="menu-text"> Banner </span>
      </a>
    </li>
    <li<?php echo menu_active('user', ' class="active"'); ?>>
      <a href="<?php echo site_url('user/user/view'); ?>">
        <i class="icon-user"></i>
        <span class="menu-text"> Users </span>
      </a>
    </li>
    <li<?php echo menu_active('shop', ' class="active"'); ?>>
      <a href="<?php echo site_url('shop/shop/view'); ?>">
        <i class="icon-desktop"></i>
        <span class="menu-text"> Shop </span>
      </a>
    </li>
     <!-- <li<?php echo menu_active('math', ' class="active"'); ?>>
      <a href="<?php echo site_url('math/math/view'); ?>">
        <i class="icon-envelope"></i>
        <span class="menu-text"> Math </span>
      </a>
    </li> -->
    <li<?php echo menu_active('setting', ' class="active open"', 1); ?>>
      <a href="#" class="dropdown-toggle">
        <i class="icon-cog"></i>
        <span class="menu-text"> Setting </span>
        <b class="arrow icon-angle-down"></b>
      </a>
      <ul class="submenu">
        <!-- <li<?php //echo menu_active('category', ' class="active"'); ?>>
          <a href="<?php //echo site_url('setting/category/view'); ?>">
            <i class="icon-double-angle-right"></i>
            Category
          </a>
        </li> -->
        <li<?php echo menu_active('type', ' class="active"'); ?>>
          <a href="<?php echo site_url('setting/type/view'); ?>">
            <i class="icon-double-angle-right"></i>
            Type
          </a>
        </li>
        <li<?php echo menu_active('location', ' class="active"'); ?>>
          <a href="<?php echo site_url('setting/location/view'); ?>">
            <i class="icon-double-angle-right"></i>
            Location
          </a>
        </li>
      </ul>
    </li>
  </ul><!-- /.nav-list -->
<?php /* 
  <div class="sidebar-collapse" id="sidebar-collapse">
    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
  </div>

  <script type="text/javascript">
    try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
  </script>
*/ ?>
</div>